package view;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JPanel;

import model.Answer;
import model.Card;

import com.hexidec.util.Translatrix;

import eventHandling.EventBus;

/**
 * This Checker gives the user the possibility to check if the answer is right or wrong by himself
 * @author sloth42
 *
 */
//TODO exit Fullscreen via ESC and/or other keys
public class UserCheckerController implements Controller {

	private EventBus eventBus;
	private JPanel pnlButtons;
	private UserCheckerView userCheckerView;
	
	
	
	public UserCheckerController(EventBus eventBus,UserCheckerView userCheckerView, JPanel pnlButtons) {
		this.eventBus = eventBus;
		this.userCheckerView = userCheckerView;
		this.pnlButtons = pnlButtons;
		initPanel();
	}
	
	private void initPanel() {
		userCheckerView.getBtnShowMeTheAnswer().setEnabled(false);
		pnlButtons.add(userCheckerView.getBtnShowMeTheAnswer());
	}
	

	public boolean checkAnswer(Card card, Answer givenAnswer) {
		// TODO Auto-generated method stub
		return false;
	}
	
	private void registerForEvents() {
		
	}

}